<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="login.title"/></title>
    <meta name="heading" content="<fmt:message key='login.heading'/>"/>
    <meta name="menu" content="Login"/>
</head>
<div class="jquery_tab_container">
    <span class="heading_tab advanced_link active tab1"><fmt:message key="mainMenu.title"/></span>
</div>

<div class="jquery_tab">
    <div class="content_block">
        <form method="post" id="login-form" action="<c:url value='/j_security_check'/>"
              onsubmit="saveUsername(this);return validateForm(this)">
            <p>
                <label for="j_username" class="required desc">
                    <fmt:message key="label.username"/> <span class="req">*</span>
                </label>
                <input type="text" class="input-medium" name="j_username" id="j_username" tabindex="1" />
            </p>
            <p>
                <label for="j_password" class="required desc">
                    <fmt:message key="label.password"/> <span class="req">*</span>
                </label>
                <input type="password" class="input-medium" name="j_password" id="j_password" tabindex="2" />
            </p>

<!--            <p class="remember">
                <label for="checkbox1" class="inline">Remember me?</label>
                <input type="checkbox" value="1" name="checkbox1" id="checkbox1" />
            </p>-->
            <!--<div class="forgot_pw"><a href="index.html">Forgot password?</a></div>-->
            <p class="clearboth">
                <input class="button" name="submit" type="submit" value="<fmt:message key="button.login"/>"/>
            </p>
            <a href="#" onclick="passwordReset(); return false;"id="forgotpassword"><fmt:message key="login.forgotpassword"/></a>

            <c:if test="${param.error != null}">
            <div class="login_message message error left">
                <!--<img src="${ctx}/images/iconWarning.gif" alt="<fmt:message key='icon.warning'/>" class="icon"/> -->
                <p><fmt:message key="errors.password.mismatch"/></p>
                <%--${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}--%>
            </div>
            </c:if>
        </form>
    <%@ include file="/scripts/login.js"%>
    <!--
    <p><fmt:message key="login.passwordHint"/></p>
    -->
</div>
</div>

    <div id="passwordreset">
        <fmt:message key="login.forgotpassworddesc"/>
    </div>